<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
  <th:block th:include="include :: header('新增维修申请')"/>
  <th:block th:include="include :: datetimepicker-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
  <form class="form-horizontal m" id="form-repairApprove-add">
    <div class="form-group">
      <label class="col-sm-3 control-label">工种：</label>
      <div class="col-sm-8">
        <input name="workType" class="form-control" type="text">
      </div>
      <!--<div class="col-sm-8">-->
      <!--<select name="workType" class="form-control m-b">-->
      <!--<option value="">所有</option>-->
      <!--</select>-->
      <!--<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>-->
      <!--</div>-->
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">车牌号：</label>
      <div class="col-sm-8">
        <input name="plateNo" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">地点：</label>
      <div class="col-sm-8">
        <input name="position" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">申请缘由：</label>
      <div class="col-sm-8">
        <input name="reason" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">现场照片：</label>
      <div class="col-sm-8">
        <input name="sencePics" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">现场视频录像：</label>
      <div class="col-sm-8">
        <input name="scenceVideo" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">所属项目：</label>
      <!--<div class="col-sm-8">
          <select name="projectId" class="form-control m-b">
              <option value="">所有</option>
          </select>
      </div>-->
      <div class="col-sm-8">
        <input name="projectId" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group" style="display: none;">
      <label class="col-sm-3 control-label">所属项目名称：</label>
      <div class="col-sm-8">
        <input name="projectName" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">维修时间：</label>
      <div class="col-sm-8">
        <div class="input-group date">
          <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
          <input name="repaireTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
        </div>
      </div>
    </div>
    <div class="form-group" style="display: none">
      <label class="col-sm-3 control-label">开始时间：</label>
      <div class="col-sm-8">
        <div class="input-group date">
          <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
          <input name="startTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
        </div>
      </div>
    </div>
    <div class="form-group" style="display: none">
      <label class="col-sm-3 control-label">结束时间：</label>
      <div class="col-sm-8">
        <div class="input-group date">
          <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
          <input name="endTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
        </div>
      </div>
    </div>
    <div class="form-group" style="display: none">
      <label class="col-sm-3 control-label">流程实例ID：</label>
      <div class="col-sm-8">
        <input name="instanceId" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group" style="display: none">
      <label class="col-sm-3 control-label">申请人：</label>
      <div class="col-sm-8">
        <input name="applyUser" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group" style="display: none">
      <label class="col-sm-3 control-label">申请时间：</label>
      <div class="col-sm-8">
        <div class="input-group date">
          <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
          <input name="applyTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
        </div>
      </div>
    </div>
    <div class="form-group" style="display: none">
      <label class="col-sm-3 control-label">实际开始时间：</label>
      <div class="col-sm-8">
        <div class="input-group date">
          <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
          <input name="realityStartTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
        </div>
      </div>
    </div>
    <div class="form-group" style="display: none">
      <label class="col-sm-3 control-label">实际结束时间：</label>
      <div class="col-sm-8">
        <div class="input-group date">
          <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
          <input name="realityEndTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
        </div>
      </div>
    </div>
  </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<script type="text/javascript">
  var prefix = ctx + "repair/repairApprove"
  $("#form-repairApprove-add").validate({
    focusCleanup: true
  });

  function submitHandler() {
    if ($.validate.form()) {
      $.operate.save(prefix + "/add", $('#form-repairApprove-add').serialize());
    }
  }

  $("input[name='repaireTime']").datetimepicker({
    format: "yyyy-mm-dd",
    minView: "month",
    autoclose: true
  });

  $("input[name='startTime']").datetimepicker({
    format: "yyyy-mm-dd",
    minView: "month",
    autoclose: true
  });

  $("input[name='endTime']").datetimepicker({
    format: "yyyy-mm-dd",
    minView: "month",
    autoclose: true
  });

  $("input[name='applyTime']").datetimepicker({
    format: "yyyy-mm-dd",
    minView: "month",
    autoclose: true
  });

  $("input[name='realityStartTime']").datetimepicker({
    format: "yyyy-mm-dd",
    minView: "month",
    autoclose: true
  });

  $("input[name='realityEndTime']").datetimepicker({
    format: "yyyy-mm-dd",
    minView: "month",
    autoclose: true
  });
</script>
</body>
</html>
